package com.fresh.feign;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fresh.common.ResponseResult;
import com.fresh.entity.Orders;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;

@FeignClient("system")
public interface OrderFeignClient {
    @RequestMapping(value = "/orders/add" ,method = RequestMethod.GET)
    ResponseResult<Orders> add(@RequestParam("goodsId") Integer goodsId, @RequestParam("num")Integer num, @RequestParam("address")String address, HttpServletRequest httpServletRequest);
}
